-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WD-8399 - Create add secrets panel #1692
Conversation
Demo starting at https://juju-dashboard-1692.demos.haus |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1692 +/- ##
==========================================
- Coverage 95.13% 95.04% -0.10%
==========================================
Files 179 182 +3
Lines 5306 5325 +19
Branches 1540 1545 +5
==========================================
+ Hits 5048 5061 +13
- Misses 238 243 +5
- Partials 20 21 +1 ☔ View full report in Codecov by Sentry. |
import AddSecretPanel, { TestId } from "./AddSecretPanel"; | ||
|
||
describe("AddSecretPanel", () => { | ||
it("renders", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a placeholder test for when the functionality is added in https://warthogs.atlassian.net/browse/WD-8546.
label: "", | ||
rotatePolicy: RotatePolicy.NEVER, | ||
}} | ||
onSubmit={(values) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is where the secret will be created in https://warthogs.atlassian.net/browse/WD-8546.
import Fields from "./Fields"; | ||
|
||
describe("Fields", () => { | ||
it("renders", async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a placeholder test for when the functionality is added in https://warthogs.atlassian.net/browse/WD-8546.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me and works as expected locally! 🚀
src/panels/Panels.tsx
Outdated
@@ -25,6 +26,8 @@ export default function Panels() { | |||
return <ConfigPanel />; | |||
case "audit-log-filters": | |||
return <AuditLogsFilterPanel />; | |||
case "add-secret": | |||
return <AddSecret />; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see that we use the "Panel" suffix for the names of all the previous panels. For consistency reasons, maybe it makes sense to name this something like "AddSecretPanel"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Done
QA
Details
https://warthogs.atlassian.net/browse/WD-8399
Screenshots